package com.ego.controller;

import com.ego.pojo.EgoResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ManageController {

    @RequestMapping("/")
    public String toLogin() {
        return "login";
    }

    @RequestMapping("/success")
    @ResponseBody
    public EgoResult success() {
        return EgoResult.ok();
    }

    @RequestMapping("/main")
    public String toIndex() {
        return "index";
    }

}
